let txtStr =  "------>Hello React<-----\n文件写入成功！！！！"
const path = require('path')
const fs = require("fs");
fs.writeFile(path.join(__dirname, "../files/11.docx"),txtStr, function (writeErr) {
    if(writeErr){
        return console.log('文件写入失败',writeErr)
    }
    fs.readFile(path.join(__dirname, "../files/11.docx"), "utf8", function (err, dataStr) {
        if(err){
            return console.log('文件读取失败',err)
        }
        console.log("---------------");
        console.log(dataStr);
      });
});
